import { Injectable } from '@angular/core';
import { Headers, Http } from '@angular/http';
import { UtilService } from './util.service';
@Injectable()
export class classService {
    private headers = new Headers({ 'Content-Type': 'application/json' });
    constructor(private http: Http,private UtilService:UtilService) { }
    ClassForUser(userguid): Promise<any> {
        return this.http.get(`${this.UtilService.classUrl}/class?user=${userguid}`).toPromise().then(res => {
            return res.json();
        })
    }
    
}